define(['app'], function (app) {

    var deps = [];

    function filter () {
        return function (input, length) {
            if (typeof input === 'string' && input.length > length) {
                input = input.substring(0, length) + '...';
            }
            return input
        };
    }

    filter.$inject = deps;

    app.lazy.filter('StrLimitFilter', filter);
});